#{extends 'CRUD/layout.html' /}

<div id="crudList" class="">
    <h2 id="crudListTitle">留言信息</h2>
    <div id="crudListSearch">
    </div>
    <div id="crudListTable">
    	<table>
                <thead>
			      <tr>
			      	<th>反馈编号</th>
			        <th>会员</th>
			        <th>反馈标题</th>
			        <th>反馈类型</th>
			        <th>反馈时间</th>
			        <th>操作</th>
			      </tr>
			    </thead>
   		#{list items:febList,as:'feb'}
	   		<tr>
	   			<td>${feb.id}</td>
		   		<td>${feb.memId}</td>
		   		<td>${feb.febTitle}</td>
		   		#{if feb.febType == 1 }
					<td>咨询</td>
				#{/if}
				#{if feb.febType == 2 }
					<td>投诉</td>
				#{/if}
				#{if  feb.febType == 3}
					<td>留言</td>
				#{/if }
		   		<td>${feb.febTime}</td>
		   		<td>
		   		#{if feb.repDet == null ||"".equals(feb.repDet)}
		   			<a href="@{show(feb.id)}"><font color="red">查看回复</font></a>
		   		#{/if}
		   		#{else}
	   				<a href="@{show(feb.id)}">查看详情</a>
	   			#{/else}
	   			<a href="@{deleteFeb(feb.id)}" onclick="return confirm('确定删除该信息吗？')">| 删除</a>
	   			</td>
	   		</tr>
   		#{/list}
     </table>
    </div>
    <div id="crudListPagination">
    </div>
    <p id="crudListAdd">
        <a href="">xoxo</a>
    </p>
</div>
